#include "guepes.h"
#include <algorithm>




void guepes::toucher(Projectile *P){
    hp = hp-std::max((float)0, P->getFrappe() - resist);
    if(hp<0)
    {
        mort=true;
        monimage1.load("boum.gif");
        monimage=&monimage1;
    }
}

void guepes::advance(int i){
    if(i==1){
        if(!mort)
        {
            this->changerImage();
            this->deplacer();
        }
    }


}
